/***************************************************************************
 * 文件名：PropertyGeneratorConst
 * 功能：
 * 说明： 属性生成常量类
 * -------------------------------------------------------------------------
 * 创建时间：2025/7/15 10:38:58
 * 创建人：葛浩
 * 邮箱： 2094733071@qq.com
 * =========================================================================
 *
 * 修改人：   
 * 修改时间：   
 * 修改说明：   
 ***************************************************************************/
using System.Collections.Generic;
using System.Linq;

namespace CodeGenerator
{
	public class CodeGeneratorType
	{
		/// <summary>
		/// 简单属性
		/// </summary>
		public const string c_SimpleProperty = "SimpleProperty";

		/// <summary>
		/// 业务对象
		/// </summary>
		public const string c_BusinessProperty = "BusinessProperty";

		/// <summary>
		/// 筛选属性
		/// </summary>
		public const string c_FilterProperty = "FilterProperty";
	}

	/// <summary>
	///上下限常量
	/// </summary>
	public class UpperAndLowerLimitsConst
	{
		/// <summary>
		/// 开始
		/// </summary>
		public const string Start = "Start";

		/// <summary>
		/// 结束
		/// </summary>
		public const string End = "End";

		private static readonly Dictionary<string, string> _Names = new Dictionary<string, string>
			{
				{Start, "开始" },
				{End, "结束" }
			};

		public static string[] GetAllKeys()
		{
			return _Names.Keys.ToArray();
		}

		public static string GetName(string key)
		{
			return key == null || !_Names.ContainsKey(key) ? key : _Names[key];
		}
	}
}
